#流程控制
# if...else ,if...elseif...else,while以及for
#age = int(input("请输入年龄："))
# if age>= 18:
#     print('成年')
# else:
#     if age >= 12:
#         print('少年')
#     else:
#         print('儿童')

#if elif else
# age = int(input("请输入年龄："))
# if age >= 18:
#     print('成年')
# elif age >= 12:
#     print('少年')
# else:
#     print('儿童')


# score = int(input('请输入你的成绩:'))
# if score >= 90 and <= 100:
#     print('优秀')
# elif score >= 80 and score < 90:
#     print('良好')
# elif score >= 70 and score < 80:
#     print('中等')
# elif score >= 60 and score < 70:
#     print('及格')
# else:
#     print('不及格')

# if 0<= score <= 100:
#     if score >= 90:
#         print('优秀')
#     elif score >= 80 and score < 90:
#         print('良好')
#     elif score >= 70 and score < 80:
#         print('中等')
#     elif score >= 60 and score < 70:
#         print('及格')
#     else:
#         print('不及格')
# else:
#     print('输入成绩不合法')

#pass
# if 0<= score <= 100:
#     if score >= 90:
#         print('优秀')
#     elif score >= 80 and score < 90:
#         print('良好')
#     elif score >= 70 and score < 80:
#         print('中等')
#     elif score >= 60 and score < 70:
#         pass
#     else:
#         print('不及格')
# else:
#     print('输入成绩不合法')

# a = 50
# b = 10
# if a >= b:
#     print(a)
# else:
#     print(b)
# s = input('请输入：')
# print('ok' if s == 'yes' else s)

# print('hello world'*10)
# a = 1
# while a < 101:
#     a += 1
#     print('a =',a)

#for循环
# for i in range(1,101):
#     print(i)
#
# for a in range(50):
#     print(a)
# for b in range(0,101,2):
#     print(b)

# sum = 0
# for i in range(1,101):
#     sum = sum + 1
#     print(sum)


# for i in range(2):
#     print('===外层===')
#     for j in range(5):
#         print('====内层====')
# break:
#
# continue:

#作业
# year = int(input("请输入任意一个年份："))
# if year % 4 == 0 and year % 100 != 0 or year % 400 == 0:
#     print(year,'是闰年')
# else:
#     print('平年')

# for i in range(1,10):
#     for j in range(1,i+1):
#         print(i,'*',j , '=',i*j,end = '\t')
#     print()
